package cn.xiaopengstack.domain.activity.model.entity;

import cn.xiaopengstack.domain.activity.model.valobj.RechangeTypeVO;
import cn.xiaopengstack.domain.strategy.model.entity.UserEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiangyangang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ActivitySkuRechargeEntity {
    /** 用户ID */
    private UserEntity user;
    /** 商品SKU - activity + activity count */
    private Long sku;
    /** 幂等业务单号，外部谁充值谁透传，这样来保证幂等（多次调用也能确保结果唯一，不会多次充值）。 */
    private String outBusinessNo;

    /**
     * 充值类型
     */
    private RechangeTypeVO rechangeTypeVO;

    /**
     * 充值时间
     */
    private Long rechargeTime;
}
